package com.wing.cabinet.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wing.cabinet.model.entity.StoresRequisition;
import com.wing.cabinet.model.entity.StoresRequisitionProduct;
import com.wing.cabinet.model.response.StoresRequisitionProductVO;
import com.wing.cabinet.model.response.StoresRequisitionVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 领新申请产品表-Dao
 *
 * @author
 */
@Mapper
public interface StoresRequisitionProductDao extends BaseMapper<StoresRequisitionProduct> {

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<StoresRequisitionProductVO> list4app(@Param("params") Map<String, Object> params);

    /**
     * 分页列表-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    List<StoresRequisitionProductVO> list4app(@Param("page") Page<StoresRequisitionProductVO> page, @Param("params") Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    StoresRequisitionProductVO get4appById(Long id);

    Page<StoresRequisitionProductVO> getStoresRequisitionProductVOPageList (IPage<StoresRequisitionProductVO> page, @Param("ew") QueryWrapper<StoresRequisitionProduct> queryWrapper);

    List<StoresRequisitionProductVO> getStoresRequisitionProductVOInfo(@Param("storesRequisitionId") Long storesRequisitionId);
}
